const spawn = require('child_process').spawn;
const ls = spawn("ls",["-lh","/usr"]);

ls.stdout.on('data',function(data){
	console.log(`stdout: ${data}`)
})

ls.stderr.on('data',function(data){
	console.log(`stderr: ${data}`)
})

ls.on('close',function(code){
	console.log(`child_process exited with code ${code}`)
})